{% extends 'TopxiaWebBundle::bootstrap-modal-layout.html.twig' %}

{% set modalSize = 'large' %}

{% block title %}{% if config.title %}{{ config.title }}{% else %}{{ config.defaultTitle }}{% endif %}编辑{% endblock %}
{% block body %}
  <form id="edit-left-course-form" class="form-horizontal item-config-form" role="form">
    <div class="row form-group">
      <div class="col-md-3 control-label">
        <label for="name">自定义名称</label>
      </div>
      <div class="col-md-7 controls">
        <input type="text"  class="form-control" name="title">
      </div>
    </div>

    <div class="form-group">
      <label class="col-sm-3 control-label">资讯数量设置</label>
      <div class="col-sm-4">
        <select class="form-control width-input-large" name="count">
          <option value="">资讯显示数量</option>
          <option value="2">2</option>
          <option value="4">4</option>
          <option value="6">6</option>
          <option value="8">8</option>
          <option value="10">10</option>
          <option value="12">12</option>
        </select>
      </div>
    </div>

      <div class="form-group">
        <label class="col-sm-3 control-label">资讯排序方式</label>
        <div class="col-sm-4">
          <select class="form-control width-input-large" name="sort_type">
            <option value="">最新</option>
            <option value="featured">最近头条</option>
            <option value="promoted">最近推荐</option>
            <option value="sticky">最近置顶</option>
          </select>
        </div>
     </div>
     

  </form>

{% endblock %}
{% block footer %}
  <button data-submiting-text="正在保存" class="btn btn-primary pull-right" data-form="#edit-left-course-form" id="save-btn">确定</button>
  <button type="button" class="btn btn-link pull-right" data-dismiss="modal">取消</button>
  <script>app.load('gracefulthemebundle/controller/theme-edit/left-edit-modal')</script>
{% endblock %}